<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%@page import="java.io.*"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="java.io.*"%>
<%@page import="java.net.*"%>
<%@page import="javax.servlet.*"%>

   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

<title>Display</title>
</head>
<body>
<div id="header">
  <h1><em>Zen-Arch</em><strong>COLLECTION</strong></h1>
</div>


<div id="nav-top">
    <center>
     <ul>
      <li><a href="Logout.jsp">Logout</a> |</li>
      <!--  <li><a href="Account.jsp">My Account</a> |</li> -->
      <li><a href="Contact.jsp">Contact us</a></li>
     </ul>
    </center>
  </div>
 
<div id="nav">
  <div>
    <ul>
      <li><a href="index2.jsp">HOME</a> &nbsp;|&nbsp;</li>
      <li><a href="http://news.yahoo.com/entertainment/fashion">FASHION NEWS</a> &nbsp;|&nbsp;</li>
      <li><a href="www.ladyspeak.com/fashion">FASHION TIPS</a> &nbsp;&nbsp;</li>
    </ul>
  </div>
</div>
  
<br><br><br><br>
<div id="body">
<center><table border="10" cellpadding="10">
<% String str= request.getAttribute("item").toString();
if (str.equals("clothes")){
%>
<tr>
<td><B>Description</B></td><td><B>Brand</B></td><td><B>Price (in $)</B></td><td><B>Click here to buy</B></td>
</tr>
<%}else if(str.equals("books")){%>
<tr>
<td><B>Description</B></td><td><B>Author</B></td><td><B>Price (in $)</B></td><td><B>Click here to buy</B></td>
</tr>
<%}%>
<% 
	ArrayList priceArray = (ArrayList) request.getAttribute("pricearray");
    String myString="";
    if(priceArray.isEmpty()==false){
   		for (int i=0;i<priceArray.size();i++){
       		//myString = (String) priceArray.get(i); %>
       		<tr>
       		<th><%=priceArray.get(i++) %></th><th><%=priceArray.get(i++) %></th><th><%=priceArray.get(i++) %></th><th><a href="Details.jsp?prodID=<%=priceArray.get(i) %>">Buy</a></th>
       		</tr>
<%    	}
	} 
%>
 
</table> </center>   
</div>   
</body>
</html>